@charset "utf-8";
@font-face {
  font-family: AKbalthom;
  src: url('../font/AKbalthom-Naga.ttf');
}

@font-face {
  font-family: AKbalthomB;
  src: url('../font/AKbalthom-Naga-Bold.ttf');
}
body {
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
}

pre {
  white-space: pre-wrap;
  /* css3.0 */
  white-space: -moz-pre-wrap;
  /* Firefox */
  white-space: -pre-wrap;
  /* Opera 4-6 */
  white-space: -o-pre-wrap;
  /* Opera 7 */
  word-wrap: break-word;
  /* Internet Explorer 5.5+ */
}

html,
body,
div,
span,
p,
dl,
dt,
dd,
ul,
li,
a,
article,
section,
nav,
header,
footer,
canvas,
details,
embed,
hgroup,
menu,
audio,
video,
table,
tbody,
tfoot,
thead,
tr,
th,
td,
fieldset,
form,
label,
legend,
h1,
h2,
h3,
h4,
h5,
h6,
b,
i,
del,
img,
menu,
summary,
nav,
details,
figcaption,
figure,
aside,
input,
button,
textarea,
content {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  word-break: break-word;
  font-weight: normal;
  outline: none !important;
  font-family: 'Source Sans Pro', Arial, 'Microsoft YaHei', 'AKbalthom',
    'AKbalthomB';
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
  display: block;
}

img {
  display: block;
  -ms-interpolation-mode: bicubic;
}

img[src=''],
img:not([src]) {
  opacity: 0;
}

ol,
ul,
li {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  font-size: inherit;
}

cite,
em,
s,
i,
b {
  font-style: normal;
}

input,
button,
textarea,
select {
  font-size: 100%;
  -webkit-appearance: none;
  line-height: 1;
}

body,
input,
button,
textarea,
select,
option {
  font-size: normal;
}

a,
input,
textarea {
  text-decoration: none;
  outline: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  resize: none;
  background: transparent;
  border: none;
}

li,
img,
label,
input {
  vertical-align: middle;
}

var {
  font-style: normal;
}

ins {
  text-decoration: none;
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

sub {
  vertical-align: text-bottom;
}

button,
select {
  text-transform: none;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

input[type='text'],
input[type='submit'],
input[type='reset'],
input[type='button'],
button {
  appearance: none;
  -webkit-appearance: none;
  -o-appearance: none;
  border-radius: 0;
}

input[type='checkbox'],
input[type='radio'] {
  box-sizing: border-box;
  padding: 0;
  *height: 13px;
  *width: 13px;
}

button,
input,
select,
textarea {
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}

button::-moz-focus-inner,
input[type='reset']::-moz-focus-inner,
input[type='button']::-moz-focus-inner,
input[type='submit']::-moz-focus-inner,
input[type='file'] > input[type='button']::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button,
html input[type='button'],
input[type='reset'],
input[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
  *overflow: visible;
}

input:-internal-autofill-previewed,
input:-internal-autofill-selected {
  transition: background-color 5000s ease-in-out 0s !important;
}

a {
  text-decoration: none;
  color: #333;
}

html,
body {
  width: 100%;
  // height: 100%;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

ul,
li,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  border: none;
}

* {
  box-sizing: border-box;
  -webkit-tab-highlight-color: rgba(0, 0, 0, 0);
}

.light-color {
  color: rgba(12, 12, 28, 0.5);
}

.grey-color {
  color: rgba(12, 12, 28, 0.7);
}

.black-color {
  color: #0c0c1c;
}

.text--small {
  font-size: 12px;
  line-height: 16px;
  color: rgba(12, 12, 28, 0.7);
}

.text--middle {
  font-size: 14px;
  letter-spacing: 0;
  line-height: 20px;
  color: rgba(12, 12, 28, 0.7);
}

.text--big {
  font-size: 20px;
  color: #0c0c1c;
  letter-spacing: 0;
  line-height: 32px;
  font-weight: 500;
}

.p-0-16 {
  padding: 0 16px;
}

.pt-24 {
  padding-top: 24px;
}
.pt-48 {
  padding-top: 48px;
}

.ml-auto {
  margin-left: auto;
}

.mr-2 {
  margin-right: 2px;
}
.mr-4 {
  margin-right: 4px;
}
.mr-8 {
  margin-right: 8px;
}
.mr-12 {
  margin-right: 12px;
}
.mr-16 {
  margin-right: 16px;
}
.mr-24 {
  margin-right: 24px;
}
.mr-36 {
  margin-right: 36px;
}
.mr-40 {
  margin-right: 40px;
}
.mr-120 {
  margin-right: 120px;
}

.ml-4 {
  margin-left: 4px;
}
.ml-6 {
  margin-left: 6px;
}
.ml-16 {
  margin-left: 16px;
}
.ml-36 {
  margin-left: 36px;
}

.mt-8 {
  margin-top: 8px;
}
.mt-24 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 4px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-36 {
  margin-bottom: 36px;
}
.mb-40 {
  margin-bottom: 40px;
}
.mb-48 {
  margin-bottom: 48px;
}
.mb-64 {
  margin-bottom: 64px;
}

.img-cover {
  object-fit: cover;
}

.ov-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ov-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.click:hover {
  background: rgba(12, 12, 28, 0.04) !important;
  border-radius: 8px;
  cursor: pointer;
}

.infinite-list::-webkit-scrollbar {
  display: none;
}

.cursor-pointer {
  cursor: pointer;
}

.flex {
  display: flex;
}

p {
  margin: 0;
}

// 图文样式
.ql-editor {
  padding: 24px 32px;

  font-size: 16px;
  line-height: 1.75;
  color: #0c0c1c;
  &:focus {
    outline: none;
  }
  white-space: normal;

  img {
    max-width: 100%;
    border: 0.5px solid rgba(12, 12, 28, 0.08);
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 28px;
  }

  a {
    color: #409eff !important;
    text-decoration: underline !important;
  }

  & blockquote {
    padding-left: 20px;
    position: relative;
    color: rgba(12, 12, 28, 0.7);

    &::after {
      content: '';
      position: absolute;
      height: 100%;
      left: 0;
      top: 0;
      bottom: 0;
      $width: 8px;
      width: $width;
      background: rgba(12, 12, 28, 0.08);
    }
  }

  > *:not(blockquote) + blockquote {
    margin-top: 24px;
  }

  & blockquote + blockquote {
    margin: 0;
  }

  & blockquote + *:not(blockquote) {
    margin-top: 24px;
  }

  & blockquote:last-child {
    margin-bottom: 24px;
  }

  .ql-header,
  .ql-divider-line,
  .ql-embed-video,
  .ql-embed-audio,
  .ql-embed-facebook,
  .ql-embed-youtube,
  .ql-embed-twitter,
  p,
  ol,
  ul {
    margin: 24px 0;
    display: block;
    width: 100%;
    white-space: normal;
    &:first-child {
      margin-top: 0;
    }
  }

  .ql-embed-image {
    display: block;
    white-space: normal;
    &:first-child {
      margin-top: 0;
    }
  }

  ol,
  ul {
    padding-left: 24px;
    margin-left: 0;
    & > li {
      margin-bottom: 12px;
      & > * {
        display: inline-block;
        width: initial;
      }
    }
  }

  .ql-header {
    font-size: 18px;
    line-height: 32px;
    font-weight: 500;
  }

  .ql-divider-line {
    height: 24px;
    line-height: 24px;
    margin: 24px 0;
    width: 100%;
    position: relative;
    border: none;
  }

  .ql-divider-line::after {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #f6f6f6;
    transform: translateY(-50%);
  }

  .ql-embed-image,
  > img {
    display: block;
    max-width: 572px;
    min-width: 190px;
    object-fit: cover;
    margin: 0 auto 28px;
    border-radius: 8px;
  }

  .ql-embed-dapp,
  .ql-embed-token,
  .ql-link {
    display: inline-block;
    margin: 0 4px;
    color: #2850e4;
    &::before {
      vertical-align: middle;
      display: inline-block;
      margin-right: 2px;
      font-family: 'inline-icon' !important;
      font-style: normal;
      font-weight: normal;
      font-variant: normal;
      text-transform: none;
    }

    // 旧表标签兼容
    &-icon,
    &-arrow,
    &-chain {
      display: none;
    }
  }

  .ql-embed-dapp::before {
    content: '\e900';
  }

  .ql-embed-token::before {
    content: '\e902';
  }

  .ql-link::before {
    content: '\e901';
  }
}
